import request from '@/utils/request'


export function add(form) {
    return request({
        url: '/api/adManager/add.do',
        method: 'get',
        params:form
    })
}

export function del(id) {
    return request({
        url: '/api/adManager/delete.do',
        method: 'get',
        params: { id }
    })
}

export function changeStatus(id) {
    return request({
        url: '/api/adManager/changeStatus.do',
        method: 'get',
        params: { id }
    })
}

export function list(position,index,pageSize) {
    return request({
        url: '/api/adManager/list.do',
        method: 'get',
        params: { position,index,pageSize }
    })
}